package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhAboutMeMapper;
import com.laowang.project.system.domain.MyCyhAboutMe;
import com.laowang.project.system.service.MyCyhAboutMeService;

/**
 * 关于我们Service业务层处理
 *
 * @author laowang
 * @date 2023-10-30
 */
@Service
public class MyCyhAboutMeServiceImpl implements MyCyhAboutMeService {
    @Autowired
    private MyCyhAboutMeMapper myCyhAboutMeMapper;

    /**
     * 查询关于我们
     *
     * @param id 关于我们ID
     * @return 关于我们
     */
    @Override
    public MyCyhAboutMe selectMyCyhAboutMeById(Integer id) {
        return myCyhAboutMeMapper.selectMyCyhAboutMeById(id);
    }

    /**
     * 查询关于我们列表
     *
     * @param myCyhAboutMe 关于我们
     * @return 关于我们
     */
    @Override
    public List<MyCyhAboutMe> selectMyCyhAboutMeList(MyCyhAboutMe myCyhAboutMe) {
        return myCyhAboutMeMapper.selectMyCyhAboutMeList(myCyhAboutMe);
    }

    /**
     * 新增关于我们
     *
     * @param myCyhAboutMe 关于我们
     * @return 结果
     */
    @Override
    public int insertMyCyhAboutMe(MyCyhAboutMe myCyhAboutMe) {
        return myCyhAboutMeMapper.insertMyCyhAboutMe(myCyhAboutMe);
    }

    /**
     * 修改关于我们
     *
     * @param myCyhAboutMe 关于我们
     * @return 结果
     */
    @Override
    public int updateMyCyhAboutMe(MyCyhAboutMe myCyhAboutMe) {
        return myCyhAboutMeMapper.updateMyCyhAboutMe(myCyhAboutMe);
    }

    /**
     * 批量删除关于我们
     *
     * @param ids 需要删除的关于我们ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhAboutMeByIds(Integer[] ids) {
        return myCyhAboutMeMapper.deleteMyCyhAboutMeByIds(ids);
    }

    /**
     * 删除关于我们信息
     *
     * @param id 关于我们ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhAboutMeById(Integer id) {
        return myCyhAboutMeMapper.deleteMyCyhAboutMeById(id);
    }
}
